package com.itheima.ydd.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

import java.io.Serializable;

@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SysConfig implements Serializable {
    private Integer id;

    //配置名称
    private String groupValue;

    //tab引入的组件名称
    private String tabValue;

    //配置配置键名英文
    @JsonProperty("attr_key")
    private String attrKey;

    //配置字段中文名
    private String attrName;

    //配置值内容
    @JsonProperty("attr_value")
    private String attrValue;

    //0正常  1已删除
    private Integer delFlag;

    //字段类型，参见字段表
    private Integer type;

    //单选多选数据值
    @JsonProperty("config_value")
    private String configValue;

    //验证规则
    private String validator;

    //输入框提示文字
    private String placeholder;

    //0不可删除 , 1可删除
    private Integer canDelete;

    //显示权重，数字大的往后
    private Integer sortNum;
}
